//
//  KWMFindVC.m
//  iLeYu
//
//  Created by kevin on 15/10/29.
//  Copyright (c) 2015年 kollway. All rights reserved.
//

#import "KWMFindVC.h"
#import "KWMFishingPlaceVC.h"

@interface KWMFindVC ()

@end

@implementation KWMFindVC {

    NSMutableArray *titleArray;
}

+ (NSString *)kwmTag {
    return @"InOutMainVC";
}

- (void)awakeFromNib {
    [super awakeFromNib];
    titleArray = [[NSMutableArray alloc] initWithCapacity:100];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];
    [self showBackIcon];
    [self initData];
    [self addView];
}

- (void)initView {
    self.title = @"发现";
}

- (void)initData {
    [titleArray addObjectsFromArray:@[@"钓点", @"渔获", @"经验"]];
}

// 添加页面
- (void)addView {
    NSMutableArray *pages = [NSMutableArray new];
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Find" bundle:nil];
    for (int i = 0; i < titleArray.count; i++) {
        KWMFishingPlaceVC *targetVC = [storyboard instantiateViewControllerWithIdentifier:[KWMFishingPlaceVC kwmTag]];
        targetVC.tabTitle = [titleArray objectAtIndex:i];
        [pages addObject:targetVC];
    }
    [self setPages:pages];
    [self showListView];
}

//重写页面切换
-(void)changePager:(NSInteger)postion{
}

@end
